package org.dromara.tearoom.domain.enums;


import lombok.AllArgsConstructor;
import lombok.Getter;
import org.dromara.common.core.enums.ArrayValuable;

import java.util.Arrays;

/**
 * 优惠劵业务类型
 *
 * @author ckj
 */
@AllArgsConstructor
@Getter
public enum CouponBusinessTypeEnum implements ArrayValuable<Integer> {

    TKC(1, "太空舱"),
    JD(2, "酒店"),
    SC(3, "商城");

    public static final Integer[] ARRAYS = Arrays.stream(values()).map(CouponBusinessTypeEnum::getType).toArray(Integer[]::new);

    /**
     * 值
     */
    private final Integer type;
    /**
     * 名字
     */
    private final String name;

    @Override
    public Integer[] array() {
        return ARRAYS;
    }




}
